#ifndef LOGINREQUEST_H
#define LOGINREQUEST_H

#include <QDebug>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkCookie>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkRequest>

#include "executionobjectinterface.h"

class LoginRequest : public ExecutionObjectInterface
{
    Q_OBJECT
public:
    LoginRequest(QObject *parent = 0);
    LoginRequest(QString username, QString password, QObject *parent = 0);
    ~LoginRequest();

public slots:
    void doInBackground();
    void onPostExecute();
    void onNetworkReply(QNetworkReply *reply);

signals:
    void responseStrings(QString, QString);

private:
    QString urlPath_;

    QString username_;
    QString password_;

    QNetworkAccessManager *manager_;
};

#endif // LOGINREQUEST_H
